<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
ob_start();
if(!isset($_SESSION))
	session_start();
include_once "systemFunctions.php";

//  Site içinde kullanılacak SESSION'ın oluşturulma işlemi
if(!isset($sess)) $sess = "";
global $sess;
if(!isset($_SESSION['random_sess'])){	$_SESSION['random_sess']=random_session();	}	else	{	$sess=$_SESSION['random_sess']; 	}

include_once "class/mysql.class.php";
include_once "settings.php";

global $DB;
$DB = new DatabaseClass($databaseHost, $databaseUser, $databasePass, $databaseName); // db isimli Veritabani nesnesi olusuyor.

include_once "functions.php";
include_once "security.php";
//include_once "projectFunctions.php";


$paramGet=explode('&',$_SERVER['QUERY_STRING']);

$parGet=explode('=',$paramGet[0]);
global $parGet, $moduleName, $moduleEvent;

$moduleNameX = array();
$moduleNameX = explode(".", $parGet[0]);

if($_SERVER['QUERY_STRING'] == 'logout.action')
{
	session_unset();
	header("Location:../");
}

if(empty($moduleNameX[0]) or empty($moduleNameX[1]))
{
	$moduleName = "moduleList";
	$moduleEvent= "moduleList";
}
else
{
	$moduleName = $moduleNameX[0];
	$moduleEvent = $moduleNameX[1];
}
?>